// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'styles/reset.css'
// 解决1像素边框问题（对于不同分辨率）
import 'styles/border.css'
// 某些机型会存在点击三秒延迟的问题，利用fastclick模块解决
import fastClick from 'fastclick'
// 引入图标css
import 'styles/iconfont.css'
// 轮播图插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
// 引入vuex
import store from './store'

Vue.config.productionTip = false
fastClick.attach(document.body)
// 全局使用
Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  // es6中 键和值是一样的时候只要写一个就可以了
  components: {App},
  template: '<App/>'
})
